package com.atbun.eduservice.client;

import com.atbun.commonutils.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description :远程调用ucenter服务
 * @Author : mayp
 * @Date: 2020-05-19 23:46
 */
@Component
@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {
//    根据用户id获取用户信息
        @GetMapping("/ucenterservice/ucentermember/getUcenterInfo/{id}")
        public UcenterMemberVo getUcenterInfo(@PathVariable String id);
}
